package nix.spring.tx;

import javax.annotation.Resource;

import nix.spring.tx.service.AccountService;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:nix/spring/tx/applicationContext.xml")
public class Demo1 {

	@Resource(name="accountService")
	private AccountService accountService;

	@Test
	public void fun1() {
		
		accountService.transfer(1, 2, 100d);
	}
}
